package com.aistar.controller;

import com.aistar.model.pojo.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
    @GetMapping("/hello")
    @ResponseBody
    public Result hello(){
        return new Result("200","添加成功",null);
    }

    @GetMapping("/hello1")
    @ResponseBody
    public Result hello1(String username,String password){
        System.out.println(username);
        System.out.println(password);
        return new Result("500","添加了success yuy",null);
    }
}
